home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_300
/
325_01
/
b2.c
< prev
next >
Wrap
C/C++ Source or Header
|
1990-03-26
|
13KB
|
339 lines
/* see comments in b1.c */
#include <stdio.h>
#include <stdlib.h>
#include <grph.h>
#include <ops2d.h>
#include <font.h>
extern void far nature(float,float,float,float);
static float x1[] = {-73.0f,-73.0f,-72.0f,-69.0f,-63.0f,-61.0f,-60.0f,\
-59.0f,-57.0f,-56.0f,-50.0f,-37.0f,-26.0f,-29.0f,\
-30.0f,-30.0f,-29.0f,-26.0f,-22.0f,-16.0f,-15.0f,\
-17.0f,-12.0f,-10.0f, 1.0f, 0.0f, 8.0f, 9.0f,\
14.0f, 12.0f, 17.0f, 15.0f, 26.0f, 24.0f, 39.0f,\
42.0f, 45.0f, 47.0f, 49.0f, 53.0f, 51.0f, 41.0f,\
34.0f, 29.0f, 29.0f, 20.0f, 13.0f, 4.0f, 0.0f,\
-6.0f,-10.0f,-20.0f,-24.0f,-28.0f,-32.0f,-35.0f,\
-39.0f,-44.0f,-50.0f,-54.0f,-68.0f,-70.0f,-71.0f,\
-73.0f};
static float y1[] = { 13.0f, 10.0f, 8.0f, 5.0f, 0.0f, -1.0f, -3.0f,\
-7.0f,-10.0f,-14.0f,-18.0f,-24.0f,-30.0f,-26.0f,\
-23.0f,-20.0f,-16.0f,-13.0f,-10.0f, -9.0f, -8.0f,\
-6.0f, -5.0f, -3.0f, -2.0f, 0.0f, 0.0f, 2.0f,\
4.0f, 6.0f, 7.0f, 9.0f, 14.0f, 16.0f, 22.0f,\
28.0f, 35.0f, 39.0f, 43.0f, 56.0f, 57.0f, 55.0f,\
53.0f, 49.0f, 48.0f, 46.0f, 45.0f, 43.0f, 41.0f,\
39.0f, 32.0f, 32.0f, 27.0f, 23.0f, 16.0f, 13.0f,\
10.0f, 6.0f, 5.0f, 5.0f, 11.0f, 12.0f, 12.0f,\
13.0f};
static float x2[] = {-48.0f,-48.0f,-49.0f,-50.0f,-53.0f,-54.0f,-54.0f,\
-53.0f,-52.0f,-50.0f,-48.0f,-51.0f,-50.0f,-51.0f};
static float y2[] = {-10.0f, -8.0f, -7.0f, -5.0f, -5.0f, -6.0f, -8.0f,\
-9.0f,-10.0f,-10.0f,-10.0f, -7.0f, -9.0f, -9.0f};
static float x3[] = {-73.0f,-73.0f,-72.0f,-69.0f,-63.0f,-61.0f,-59.0f,\
-56.0f,-48.0f,-51.0f,-54.0f,-68.0f,-70.0f,-71.0f,-73.0f};
static float y3[] = { 13.0f, 10.0f, 8.0f, 5.0f, 0.0f, -1.0f, 0.0f,\
-2.0f, -1.0f, 5.0f, 5.0f, 11.0f, 12.0f, 12.0f, 13.0f};
static float x4[] = {-71.0f,-67.0f,-55.0f,-59.0f,-58.0f,-58.0f,-56.0f,-54.0f,\
-51.0f,-48.0f,-55.0f,-56.0f,-57.0f,-56.0f,-57.0f,-57.0f,\
-54.0f,-51.0f,-48.0f,-56.0f,-59.0f,-60.0f};
static float y4[] = { 11.0f, 8.0f, 2.0f, -1.0f, -2.0f, -6.0f,-10.0f,-13.0f,\
-14.0f,-15.0f, -3.0f, -4.0f, -6.0f,-10.0f, -6.0f, 0.0f,\
4.0f, 1.0f, -1.0f, -2.0f, 0.0f, -1.0f};
static float x5[] = {-30.0f,-35.0f,-38.0f,-41.0f,-46.0f,-40.0f,-36.0f,-33.0f,\
-32.0f,-33.0f,-35.0f,-30.0f,-25.0f,-23.0f,-23.0f,-24.0f,\
-26.0f,-28.0f,-30.0f,-32.0f,-28.0f,-25.0f,-22.0f,-21.0f,\
-18.0f,-20.0f,-19.0f,-19.0f,-20.0f,-25.0f,-25.0f,-28.0f,\
-26.0f,-29.0f,-30.0f,-32.0f,-28.0f,-30.0f,-29.0f,-26.0f};
static float y5[] = {-20.0f,-20.0f,-19.0f,-17.0f,-13.0f,-13.0f,-13.0f,-12.0f,\
-9.0f, -6.0f, -3.0f, -3.0f, -1.0f, 2.0f, 10.0f, 14.0f,\
16.0f, 18.0f, 17.0f, 16.0f, 23.0f, 23.0f, 21.0f, 19.0f,\
20.0f, 15.0f, 4.0f, 0.0f, -4.0f, -6.0f, -8.0f, -7.0f,\
-13.0f,-16.0f,-20.0f, 16.0f, 23.0f,-20.0f,-16.0f,-13.0f};
static float x6[] = {-28.0f,-25.0f,-22.0f,-21.0f,-18.0f,-20.0f,-19.0f,-19.0f,\
-20.0f,-25.0f,-25.0f,-28.0f,-26.0f,-22.0f,-16.0f,-15.0f,\
-17.0f,-12.0f,-10.0f, 1.0f, 0.0f, 8.0f, 9.0f, 14.0f,\
12.0f, 17.0f, 15.0f, 26.0f, 24.0f, 39.0f, 42.0f, 45.0f,\
47.0f, 49.0f, 53.0f, 51.0f, 41.0f, 34.0f, 29.0f, 20.0f,\
13.0f, 4.0f, 0.0f, -6.0f,-10.0f,-20.0f,-24.0f,-28.0f};
static float y6[] = { 23.0f, 23.0f, 21.0f, 19.0f, 20.0f, 15.0f, 4.0f, 0.0f,\
-4.0f, -6.0f, -8.0f, -7.0f,-13.0f,-10.0f, -9.0f, -8.0f,\
-6.0f, -5.0f, -3.0f, -2.0f, 0.0f, 0.0f, 2.0f, 4.0f,\
6.0f, 7.0f, 9.0f, 14.0f, 16.0f, 22.0f, 28.0f, 35.0f,\
39.0f, 43.0f, 56.0f, 57.0f, 55.0f, 53.0f, 49.0f, 48.0f,\
46.0f, 45.0f, 43.0f, 41.0f, 39.0f, 32.0f, 27.0f, 23.0f};
static float x7[] = { 47.0f, 60.0f, 70.0f, 80.0f, 85.0f, 90.0f, 94.0f, 96.0f,\
97.0f, 93.0f, 90.0f, 93.0f, 94.0f, 90.0f, 84.0f, 86.0f,\
87.0f, 87.0f, 85.0f, 80.0f, 83.0f, 83.0f, 80.0f, 76.0f,\
80.0f, 79.0f, 70.0f, 72.0f, 74.0f, 73.0f, 70.0f, 67.0f,\
68.0f, 67.0f, 63.0f, 61.0f, 61.0f, 60.0f, 56.0f, 54.0f,\
55.0f, 53.0f, 50.0f, 48.0f, 47.0f, 43.0f, 40.0f, 38.0f,\
36.0f, 35.0f, 34.0f, 34.0f, 34.0f, 60.0f};
static float y7[] = { 39.0f, 43.0f, 46.0f, 49.0f, 52.0f, 54.0f, 57.0f, 60.0f,\
62.0f, 62.0f, 61.0f, 64.0f, 66.0f, 66.0f, 64.0f, 66.0f,\
70.0f, 73.0f, 73.0f, 71.0f, 75.0f, 77.0f, 76.0f, 75.0f,\
82.0f, 83.0f, 79.0f, 82.0f, 86.0f, 87.0f, 86.0f, 84.0f,\
87.0f, 89.0f, 88.0f, 85.0f, 90.0f, 92.0f, 90.0f, 86.0f,\
92.0f, 94.0f, 90.0f, 87.0f, 90.0f, 86.0f, 82.0f, 77.0f,\
73.0f, 67.0f, 63.0f, 58.0f, 53.0f, 70.0f};
static float x8[] = { 90.0f, 83.0f, 76.0f, 69.0f, 60.0f, 54.0f, 84.0f, 80.0f,\
75.0f, 70.0f, 63.0f, 54.0f, 80.0f, 75.0f, 70.0f, 66.0f,\
60.0f, 52.0f, 76.0f, 73.0f, 69.0f, 65.0f, 62.0f, 56.0f,\
70.0f, 66.0f, 63.0f, 60.0f, 56.0f, 52.0f, 67.0f, 64.0f,\
60.0f, 56.0f, 54.0f, 50.0f, 61.0f, 57.0f, 54.0f, 50.0f,\
48.0f, 44.0f, 54.0f, 50.0f, 47.0f, 45.0f, 43.0f, 41.0f,\
48.0f, 45.0f, 43.0f, 40.0f, 38.0f, 37.0f};
static float y8[] = { 61.0f, 56.0f, 52.0f, 48.0f, 45.0f, 43.0f, 64.0f, 60.0f,\
56.0f, 54.0f, 51.0f, 47.0f, 71.0f, 65.0f, 61.0f, 57.0f,\
54.0f, 50.0f, 75.0f, 70.0f, 67.0f, 64.0f, 61.0f, 57.0f,\
79.0f, 75.0f, 72.0f, 70.0f, 65.0f, 59.0f, 84.0f, 80.0f,\
76.0f, 71.0f, 67.0f, 61.0f, 85.0f, 80.0f, 75.0f, 70.0f,\
65.0f, 57.0f, 86.0f, 80.0f, 75.0f, 70.0f, 65.0f, 57.0f,\
87.0f, 82.0f, 76.0f, 70.0f, 65.0f, 58.0f};
static float x9[] = {-20.0f,-17.0f,-12.0f, -8.0f, -5.0f,-16.0f,-12.0f, -7.0f,\
2.0f, -2.0f, 5.0f, 42.0f, 42.0f, 40.0f, 40.0f, 37.0f,\
36.0f, 35.0f, 33.0f,-56.0f,-53.0f,-50.0f,-42.0f,-35.0f,\
-31.0f,-46.0f,-40.0f,-33.0f, 4.0f, -5.0f, -6.0f, -6.0f,\
-8.0f, -7.0f, -2.0f, 0.0f, 8.0f, 10.0f, 12.0f, 10.0f,\
0.0f, 1.0f, 0.0f, 2.0f, 1.0f, -2.0f, -2.0f, 2.0f,\
7.0f, 8.0f, 6.0f, 7.0f, 8.0f, 0.0f, -4.0f, -5.0f,\
-6.0f, 8.0f, 7.0f, 4.0f, 1.0f, 3.0f, 4.0f, 2.0f,\
3.0f, 5.0f, 23.0f, 26.0f, 29.0f, 30.0f, 31.0f, 30.0f,\
29.0f, 27.0f, 27.0f, 28.0f, 22.0f, 20.0f, 21.0f, 22.0f,\
20.0f, 15.0f, 15.0f, 17.0f, 20.0f, 23.0f, 15.0f, 12.0f,\
11.0f, 11.0f, 14.0f, 16.0f, 17.0f, 16.0f, 14.0f, 15.0f,\
21.0f, 23.0f, 25.0f, 29.0f, 28.0f, 27.0f, 17.0f, 19.0f,\
21.0f, 87.0f, 91.0f, 86.0f, 90.0f, 83.0f, 87.0f, 81.0f,\
85.0f, 79.0f, 82.0f, 77.0f, 81.0f, 74.0f, 77.0f, 73.0f,\
75.0f, 70.0f, 73.0f, 68.0f, 71.0f, 65.0f, 69.0f, 64.0f,\
67.0f, 61.0f, 64.0f, 60.0f, 63.0f, 57.0f, 59.0f, 55.0f,\
57.0f, 50.0f, 52.0f, 49.0f, 50.0f, 44.0f, 45.0f, 92.0f,\
94.0f, 88.0f, 91.0f, 83.0f, 86.0f, 79.0f, 81.0f, 74.0f,\
77.0f, 70.0f, 72.0f, 65.0f, 66.0f, 59.0f, 60.0f, 52.0f,\
53.0f, 46.0f, 47.0f, 35.0f, 40.0f, 40.0f, 45.0f, 2.0f,\
11.0f, 5.0f, 14.0f, 9.0f, 16.0f};
static float y9[] = { 27.0f, 30.0f, 34.0f, 36.0f, 38.0f, 27.0f, 30.0f, 33.0f,\
38.0f, 39.0f, 43.0f, 35.0f, 38.0f, 37.0f, 41.0f, 41.0f,\
44.0f, 44.0f, 46.0f,-12.0f,-15.0f,-16.0f,-20.0f,-24.0f,\
-26.0f,-17.0f,-20.0f,-23.0f, 45.0f, 47.0f, 48.0f, 50.0f,\
54.0f, 56.0f, 59.0f, 59.0f, 57.0f, 56.0f, 50.0f, 46.0f,\
59.0f, 58.0f, 56.0f, 55.0f, 53.0f, 52.0f, 50.0f, 49.0f,\
49.0f, 52.0f, 55.0f, 57.0f, 57.0f, 56.0f, 56.0f, 55.0f,\
50.0f, 57.0f, 59.0f, 60.0f, 58.0f, 58.0f, 57.0f, 55.0f,\
54.0f, 52.0f, 32.0f, 36.0f, 39.0f, 41.0f, 47.0f, 49.0f,\
49.0f, 47.0f, 45.0f, 42.0f, 36.0f, 35.0f, 37.0f, 39.0f,\
40.0f, 36.0f, 34.0f, 33.0f, 33.0f, 32.0f, 34.0f, 34.0f,\
35.0f, 39.0f, 43.0f, 44.0f, 43.0f, 40.0f, 37.0f, 36.0f,\
40.0f, 42.0f, 43.0f, 49.0f, 51.0f, 53.0f, 43.0f, 45.0f,\
46.0f, 53.0f, 57.0f, 55.0f, 58.0f, 59.0f, 62.0f, 60.0f,\
64.0f, 63.0f, 66.0f, 65.0f, 69.0f, 68.0f, 72.0f, 69.0f,\
74.0f, 72.0f, 75.0f, 74.0f, 77.0f, 77.0f, 80.0f, 78.0f,\
82.0f, 80.0f, 84.0f, 81.0f, 85.0f, 82.0f, 86.0f, 84.0f,\
87.0f, 84.0f, 88.0f, 84.0f, 88.0f, 83.0f, 87.0f, 58.0f,\
60.0f, 63.0f, 64.0f, 69.0f, 72.0f, 73.0f, 76.0f, 77.0f,\
81.0f, 82.0f, 86.0f, 86.0f, 88.0f, 88.0f, 90.0f, 89.0f,\
91.0f, 88.0f, 89.0f, 48.0f, 52.0f, 50.0f, 53.0f, 1.0f,\
-3.0f, 2.0f, 0.0f, 4.0f, 4.0f};
static float x10[]= {-39.0f,-35.0f,-32.0f,-31.0f,-35.0f,-42.0f,-50.0f,-54.0f,\
-55.0f,-59.0f,-62.0f,-63.0f,-57.0